package spring.async;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class AsyncTaskService {

    @Async //标明这是一个异步方法
    public void executeAsyncTask(int i) {
        System.out.println(i);
    }
}
